<include file="public:header"/>
<script charset="utf-8" src="__STATIC__/js/jquery.js" type="text/javascript"></script>

<div class="subnav">
    <h1 class="title_2 line_x">发货</h1>
</div>

<form id="info_form" action="" method="post">

    <div class="pad_lr_10">
        <div class="content_list pad_10">
            <table width="100%" cellpadding="2" cellspacing="1" class="table_form">
                <tr>
                    <th width="120">订单编号 :</th>
                    <td>
                        <input name="orderId" value="{$order.id}" type="hidden"/>
                        <input type="text" value="{$order.sn}" readonly class="input-text" size="40"/>
                    </td>
                </tr>
                <tr>
                    <th width="120">商品名称 :</th>
                    <td>
                        <input type="text" name="title" id="title" value="{$order.goods}" readonly class="input-text" size="40"/>
                    </td>
                </tr>
                <tr>
                    <th width="120">快递企业 :</th>
                    <td>
                        <select class="mar10" name="company" id="company">
                            <option value="shunfeng">顺丰快递</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th width="120">快递单号 :</th>
                    <td>
                        <input type="text" name="postid" id="postid" class="input-text" size="40"/>
                    </td>
                </tr>
                <tr>
                    <th width="120">收件人姓名 :</th>
                    <td>
                        <input type="text" name="username" id="username" value="{$addr.user_name}" class="input-text" size="40"/>
                    </td>
                </tr>
                <tr>
                    <th width="120">收件人联系电话 :</th>
                    <td>
                        <input type="text" name="phone" id="phone" value="{$addr.user_tel}" class="input-text" size="40"/>
                    </td>
                </tr>
                <tr>
                    <th width="120">收件人地址 :</th>
                    <td>
                        <input type="text" name="address" id="address" value="{$addr.address}" class="input-text" size="40"/>
                    </td>
                </tr>
            </table>
        </div>
        <div class="mt10"><input type="submit" value="{:L('submit')}" class="btn btn_submit"></div>
    </div>
</form>

<include file="public:footer"/>

<script>
    $.formValidator.initConfig({formid: "info_form", autotip: true});
    $("#postid").formValidator({onshow: '请填写快递单号', onfocus: '请填写快递单号'}).inputValidator({
        min: 5,
        onerror: '请填写正确的快递单号'
    });
    $("#username").formValidator({onshow: '请填写收件人姓名', onfocus: '请填写收件人姓名'}).inputValidator({
        min: 1,
        onerror: '请填写正确的收件人姓名'
    });
    $("#phone").formValidator({onshow: '请填写联系电话', onfocus: '请填写联系电话'}).inputValidator({
        min: 11,
        onerror: '请填写正确的联系电话'
    });
    $("#address").formValidator({onshow: '请填写地址', onfocus: '请填写地址'}).inputValidator({
        min: 5,
        onerror: '请填写正确的地址'
    });
</script>